Skip to content

Instantly share code, notes, and snippets.

@tykurtz
tykurtz / grokking_to_leetcode.md
Last active March 20, 2026 20:03
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@howardjohn
howardjohn / otel-trace.sh
Created July 11, 2023 14:44
Example of three different ways to use otel tracing in bash. See https://blog.howardjohn.info/posts/shell-tracing/
#!/bin/bash
# Usage: tracing::init [endpoint; default localhost:4317]
function tracing::init() {
export OTEL_EXPORTER_OTLP_ENDPOINT="${1:-${OTEL_EXPORTER_OTLP_ENDPOINT:-localhost:4317}}"
}
# Usage: tracing::auto::init [endpoint; default localhost:4317]
function tracing::auto::init() {
tracing::init
@dulk-dev
dulk-dev / gist:b3a242faf871a2dfc6cae193826403f0
Created March 19, 2026 14:06
CursorRules-用ClaudeCode替代子代理
## 子代理与 Claude Code
### 禁止使用子代理进行代码探查
- 禁止使用 Task 工具进行代码探索和信息收集,具体禁止如下类型 subagent_type:explore|generalPurpose
### 充分利用 Claude Code 代替子代理
- 充分利用 Claude Code 的能力进行协作
- 采用 Claude Code 进行信息收集、代码探索等工作
- 耗时调研、并行工作、独立校验等场景下,都适合使用 Claude Code
- 典型场景如:"需要广泛探索代码库"|"需要搜索多个方向的代码"|"需要委托一个代理帮我查找信息"|"需要并行搜索不同模块"|"需要代码审查"|"需要执行测试"
@FreddieOliveira
FreddieOliveira / docker.md
Last active March 20, 2026 19:57
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

Anthropic API notes for the Claude Code OAuth flow

This flow does not start from a manually created Console API key. It starts from Anthropic's Claude Code OAuth flow, then uses the returned OAuth access token as the credential for subsequent Anthropic API requests.

Endpoints and scope

  • Authorisation endpoint: https://claude.ai/oauth/authorize
  • Token endpoint: https://console.anthropic.com/v1/oauth/token
@CAFxX
CAFxX / golang_minimize_allocations.md
Last active March 20, 2026 19:54
Minimize allocations in Go

📂 Minimize allocations in Go

A collection of tips for when you need to minimize the number of allocations in your Go programs.

Use the go profiler to identify which parts of your program are responsible for most allocations.

Caution

Never apply these tricks blindly (i.e. without measuring the actual performance benefit/impact).

[!NOTE]

Visual Studio 2026 18.x
Professional: NVTDK-QB8J9-M28GR-92BPC-BTHXK
Enterprise: VYGRN-WPR22-HG4X3-692BF-QGT2V
Product Year Version Product Keys
Visual Studio 2022 2021 17.x
Professional: TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Enterprise: VHF9H-NXBBB-638P6-6JHCY-88JWH
Visual Studio 2019 2019 16.x
@jjb
jjb / file.md
Last active March 20, 2026 19:46
Using Jemalloc 5 with Ruby.md

For years, people have been using jemalloc with ruby. There were various benchmarks and discussions. Legend had it that Jemalloc 5 didn't work as well as Jemalloc 3.

Then, one day, hope appeared on the horizon. @wjordan offered a config for Jemalloc 5.

Ubuntu/Debian

FROM ruby:3.1.2-bullseye
RUN apt-get update ; \
@rizzuuu
rizzuuu / csgo_rizzu.txt
Last active March 20, 2026 19:55
Counter-Strike 2 Text Mod (Zuhn)
"lang"
{
"Language" "english"
"Tokens"
{
"match_ready_title" "Are You Ready, Kids?"
"match_ready_accept" "Aye, aye captain!"
"play_setting_online" "Onlile"